package cn.csc.module.product.controller.admin.shopcart.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;

/**
* 购物车 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class SopCartItemBaseVO {

    @ApiModelProperty(value = "店铺ID", required = true)
    @NotNull(message = "店铺ID不能为空")
    private BigInteger shopId;

    @ApiModelProperty(value = "产品ID", required = true)
    @NotNull(message = "产品ID不能为空")
    private BigInteger spuId;

    @ApiModelProperty(value = "SkuID", required = true)
    @NotNull(message = "SkuID不能为空")
    private BigInteger skuId;

    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    private BigInteger userId;

    @ApiModelProperty(value = "购物车产品个数", required = true)
    @NotNull(message = "购物车产品个数不能为空")
    private Integer count;

    @ApiModelProperty(value = "售价，加入购物车时的商品价格", required = true)
    @NotNull(message = "售价，加入购物车时的商品价格不能为空")
    private BigInteger priceFee;

    @ApiModelProperty(value = "是否已勾选")
    private Byte isChecked;

}
